package com.open.capacity.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("Dictionary")
@EqualsAndHashCode(callSuper=true)
public class Dictionary extends Model<Dictionary> implements Serializable {

    /**
     * 字典Id,主键，自增
     */
    @TableId(value = "dictid",type = IdType.AUTO)
    @JsonSerialize(using= ToStringSerializer.class)
    private Integer dictid;

    /**
     *字典代码
     */
    private String dccode;

    /**
     *字典名
     */
    private String dcname;

    /**
     *字典类型
     */
    private String dctype;

    /**
     *字典状态
     */
    private Boolean enabled;

    /**
     *创建时间
     */
    private Date cretim;
}
